package com.learn.study;

import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaSparkContext;

/**
 * Created by guofs on 2017/5/21.
 */
public class Demo01 {
    public static void main(String[] args) {
        System.setProperty("hadoop.home.dir", "D:\\SystemEnvironment\\hadoop-2.7.3");

        SparkConf conf = new SparkConf()
                .setMaster("local[4]")
                .setAppName("my test app");
        JavaSparkContext sc =new JavaSparkContext(conf);

    }
}
